package com.bydq.patrolsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bydq.patrolsystem.entity.PsRolePremission;
import com.bydq.patrolsystem.vo.FunctionTreeVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 写代码是不可能写代码的啦~~
 * @since 2020-05-22
 */
public interface PsRolePremissionService extends IService<PsRolePremission> {

    Object[] listFunctionIdsByRoleId(Long id);

    boolean setRoleAndPremission(Long roleId, List<FunctionTreeVo> functionTreeVo);

}
